from flask import Flask
from flask import render_template
from jinja2 import Markup, Environment, FileSystemLoader
from pyecharts.globals import CurrentConfig

# 关于 CurrentConfig，可参考 [基本使用-全局变量]
CurrentConfig.GLOBAL_ENV = Environment(loader=FileSystemLoader("./templates"))

from pyecharts import options as opts
from pyecharts.charts import Line,Pie, Timeline
from pyecharts.faker import Faker

import pandas as pd
import requests,requests_html
import os
from glob import glob 
from lxml import etree

import random  #测试

app = Flask(__name__, static_folder="static")

@app.route("/")
def index():
    return render_template("index.html")

@app.route("/Trend_Line")
def index1():
    return render_template("Trend_Line.html")


@app.route("/timeline_pie")
def index2():
    return render_template("timeline_pie.html")

@app.route("/page_simple_layout")
def index3():
    return render_template("page_simple_layout.html") 

@app.route("/page3")
def index4():
    return render_template("page3.html") 

@app.route("/page4")
def index5():
    return render_template("page4.html") 

if __name__ == '__main__':
    app.run()
